package com.eos.control.action.emp;

import com.eos.control.action.base.AbstractBaseAction;

public class UpdateFunctionAction extends AbstractBaseAction {
	private static final long serialVersionUID = 7099351653238878160L;
	private Long functionId;
	private Long currentId;
	private Long fatherId;
	private String functionName;
	private String functionDesc;
	
	public void setFunctionId(Long functionId) {
		this.functionId = functionId;
	}
	
	public void setCurrentId(Long currentId) {
		this.currentId = currentId;
	}
	
	public void setFatherId(Long fatherId) {
		this.fatherId = fatherId;
	}
	
	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}
	
	public void setFunctionDesc(String functionDesc) {
		this.functionDesc = functionDesc;
	}

	@Override
	public String execute() {
		try{
			if(null == functionId || functionId.longValue() <=0){
				statusCode = "300";
				message = "参数错误,修改节点信息失败!";
			}else{
				
				statusCode = "200";
				message = "修改节点信息成功!";
			}
		}catch (Exception e) {
			e.printStackTrace();
			statusCode = "300";
			message = "系统异常, 修改节点信息失败!";
		}
		return SUCCESS;
	}
}
